{#{% extends 'Base/main.content.lists.div.html.twig' %}#}
{#{% import 'Base/list_item.twig' as listItem %}#}
{% extends 'Back/Sano/list.creator.html.twig' %}
{% import 'Back/Sano/list.item.twig' as listItem %}
{#默认不能删除和新增#}
{#{% block addBtn %}{% endblock %}#}
{#{% block delBtn %}{% endblock %}#}
{% block tableHead %}
    <tr>
        <th align="" width="5%">选择</th>
        <th align="" width="">{{config.user.label}}</th>
        <th align="" width="">{{config.cat1.label}}</th>
        <th align="" width="">{{config.cat2.label}}</th>
        <th align="" width="">{{config.favor.label}}</th>
        <th align="" width="">{{config.favorProvince.label}}</th>
        <th align="" width="">{{config.favorCity.label}}</th>
        <th align="" width="">{{config.favorArea.label}}</th>
        <th align="" width="">{{config.tips.label}}</th>
        <th align="" width="">{{config.address.label}}</th>
        <th align="" width="">{{config.contact.label}}</th>
        <th align="" width="">{{config.sn.label}}</th>
        <th align="" width="">{{config.bookAt.label}}</th>
        <th align="" width="">{{config.expireAt.label}}</th>
        <th align="" width="">{{config.hireAt.label}}</th>
        <th align="" width="">{{config.confirmAt.label}}</th>
        <th align="" width="">{{config.finishAt.label}}</th>
        <th align="" width="">{{config.createAt.label}}</th>
        <th align="" width="">{{config.status.label}}</th>
        <th align="" width="">{{config.pics.label}}</th>
        <th align="" width="">{{config.type.label}}</th>
        <th align="center" width="8%">操作</th>
    </tr>
{% endblock %}
{% block tableList %}
    {% for Entity in lists %}
        <tr>
            <td align='' width=''>
                <span class="checkall"><input lay-skin="primary" type="checkbox" name="ids[]" value="{{ Entity.id }}"/></span>
            </td>
            <td align='' width='' id='user_{{ Entity.id }}'>
                {{ listItem.text('user',Entity.user,Entity.id) }}
            </td>
            <td align='' width='' id='cat1_{{ Entity.id }}'>
                {{ listItem.text('cat1',Entity.cat1,Entity.id) }}
            </td>
            <td align='' width='' id='cat2_{{ Entity.id }}'>
                {{ listItem.text('cat2',Entity.cat2,Entity.id) }}
            </td>
            <td align='' width='' id='favor_{{ Entity.id }}'>
                {{ listItem.text('favor',Entity.favor,Entity.id) }}
            </td>
            <td align='' width='' id='favorProvince_{{ Entity.id }}'>
                {{ listItem.text('favorProvince',Entity.favorProvince,Entity.id) }}
            </td>
            <td align='' width='' id='favorCity_{{ Entity.id }}'>
                {{ listItem.text('favorCity',Entity.favorCity,Entity.id) }}
            </td>
            <td align='' width='' id='favorArea_{{ Entity.id }}'>
                {{ listItem.text('favorArea',Entity.favorArea,Entity.id) }}
            </td>
            <td align='' width='' id='tips_{{ Entity.id }}'>
                {{ listItem.text('tips',Entity.tips,Entity.id) }}
            </td>
            <td align='' width='' id='address_{{ Entity.id }}'>
                {{ listItem.text('address',Entity.address,Entity.id) }}
            </td>
            <td align='' width='' id='contact_{{ Entity.id }}'>
                {{ listItem.text('contact',Entity.contact,Entity.id) }}
            </td>
            <td align='' width='' id='sn_{{ Entity.id }}'>
                {{ listItem.text('sn',Entity.sn,Entity.id) }}
            </td>
            <td align='' width='' id='bookAt_{{ Entity.id }}'>
                {{ listItem.day('bookAt',Entity.bookAt,Entity.id) }}
            </td>
            <td align='' width='' id='expireAt_{{ Entity.id }}'>
                {{ listItem.day('expireAt',Entity.expireAt,Entity.id) }}
            </td>
            <td align='' width='' id='hireAt_{{ Entity.id }}'>
                {{ listItem.day('hireAt',Entity.hireAt,Entity.id) }}
            </td>
            <td align='' width='' id='confirmAt_{{ Entity.id }}'>
                {{ listItem.day('confirmAt',Entity.confirmAt,Entity.id) }}
            </td>
            <td align='' width='' id='finishAt_{{ Entity.id }}'>
                {{ listItem.day('finishAt',Entity.finishAt,Entity.id) }}
            </td>
            <td align='' width='' id='createAt_{{ Entity.id }}'>
                {{ listItem.day('createAt',Entity.createAt,Entity.id) }}
            </td>
            <td align='' width='' id='status_{{ Entity.id }}'>
                {{ listItem.text('status',Entity.status,Entity.id) }}
            </td>
            <td align='' width='' id='pics_{{ Entity.id }}'>
                {{ listItem.pics('pics',Entity.pics,Entity.id) }}
            </td>
            <td align='' width='' id='type_{{ Entity.id }}'>
                {{ listItem.text('type',Entity.type,Entity.id) }}
            </td>
            <td align='' width=''>
                {{ listItem.edit('Task','',Entity.id) }}
            </td>
        </tr>
    {% endfor %}
{% endblock %}
{% block script %}
{% endblock %}

